import { User, UserStatus } from '@libs/common/protos/user/user';
import { Timestamp } from '@libs/common/protos/google/protobuf/timestamp';
import { ApiProperty } from '@nestjs/swagger';

export  class UserDto implements User{
  @ApiProperty({ description: '创建时间' })
  createTime: Timestamp | undefined;
  @ApiProperty({ description: '邮箱' })
  email: string;
  @ApiProperty({ description: '额外信息' })
  extra: { [p: string]: string };
  @ApiProperty({ description: '最后登录时间' })
  lastLoginTime: Timestamp | undefined;
  @ApiProperty({ description: '手机号' })
  phone: string;
  @ApiProperty({ description: '用户状态' })
  status: UserStatus;
  @ApiProperty({ description: '用户ID' })
  userId: number;
  @ApiProperty({ description: '用户名' })
  username: string;

}